package com.xudow.app.dynamicstate_old.module.user;

import android.content.Intent;
import android.os.Bundle;

import com.jude.beam.expansion.BeamBaseActivity;
import com.xudow.app.R;
import com.xudow.app.dynamicstate_old.domain.Config;
import com.xudow.app.dynamicstate_old.module.follow.NewDynamicActivity;

/**
 * Created by zhuchenxi on 16/6/27.
 */

public class UserDynamicListActivity extends BeamBaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_user_dynamic_list);
        findViewById(R.id.image_back).setOnClickListener(v -> finish());
        getSupportFragmentManager().beginTransaction().add(R.id.container, UserDynamicFragment.newInstance(getIntent().getLongExtra("id", 0))).commit();
        $(R.id.dynamic_write).setOnClickListener(v -> {
            Intent intent = new Intent(this, NewDynamicActivity.class);
            startActivityForResult(intent, Config.Code_NeedRefresh);
        });
    }
}
